﻿<%@ Control Language="C#" ClassName="GrnVoidFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataGrnId" runat="server" Text="Grn Id:" AssociatedControlID="dataGrnId" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataGrnId" DataSourceID="GrnIdGrnDataSource" DataTextField="GrnDate" DataValueField="GrnId" SelectedValue='<%# Bind("GrnId") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:GrnDataSource ID="GrnIdGrnDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataVoidReason" runat="server" Text="Void Reason:" AssociatedControlID="dataVoidReason" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataVoidReason" Text='<%# Bind("VoidReason") %>' MaxLength="50"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataVoidReason" runat="server" Display="Dynamic" ControlToValidate="dataVoidReason" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataVoidPerson" runat="server" Text="Void Person:" AssociatedControlID="dataVoidPerson" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataVoidPerson" Text='<%# Bind("VoidPerson") %>' MaxLength="20"></asp:TextBox><asp:RequiredFieldValidator ID="ReqVal_dataVoidPerson" runat="server" Display="Dynamic" ControlToValidate="dataVoidPerson" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataVoidDate" runat="server" Text="Void Date:" AssociatedControlID="dataVoidDate" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataVoidDate" Text='<%# Bind("VoidDate", "{0:dd-MMM-yyyy}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataVoidDate" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" /><asp:RequiredFieldValidator ID="ReqVal_dataVoidDate" runat="server" Display="Dynamic" ControlToValidate="dataVoidDate" ErrorMessage="Required"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250"></asp:TextBox>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


